home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_521 / t3e / t3e.doc < prev    next >
Text File  |  1992-05-06  |  2KB  |  83 lines

  1.                     T3E -- Text to Executable Converter
  2.  
  3.  
  4. Have  you  ever wanted to create a small text file that can be displayed by
  5. executing  it  ?   Up to now, you either had to use `type filename', or use
  6. Txt2Exe.   The  latter  has  the  small  problem,  that only a limited size
  7. textfiles could be included (I think it was 256 or so...).
  8.  
  9. Well,  Txt3Exe  doesn't  have that problem.  And, the header displaying the
  10. text  is  as  short  as  can  be.  I have stripped the code to the absolute
  11. minimum,  and reduced the hunk structure quite a bit, saving another couple
  12. longwords.   Anyway,  the  resulting  file  will  still  be  crunchabl with
  13. PowerPacker or Imploder (haven't tested any other packers).
  14.  
  15. The display program looks like this:
  16.  
  17. start:
  18.     lea    dosname(pc),a1
  19.     move.l    4.w,a6
  20.     jsr    -552(a6)
  21.     move.l    d0,a6
  22.     jsr    -60(a6)
  23.     move.l    d0,d1
  24.     lea    text(pc),a0
  25.     move.l    (a0)+,d3
  26.     move.l    a0,d2
  27.     jsr    -48(a6)
  28.     move.l    a6,a1
  29.     move.l    4.w,a6
  30.     jsr    -414(a6)
  31.     moveq    #0,d0
  32.     rts
  33.     
  34. dosname:    dc.b    'dos.library',0
  35. text:    dc.l    $aaaa5555
  36.  
  37. Including  the  hunk  information,  the resulting file size will be only 94
  38. bytes larger than the text file.
  39.  
  40.  
  41.                                Using T3E ...
  42.  
  43. To have a text-file mutated into an executable, just type:
  44.  
  45.     T3E <textfilename> <exefilename>
  46.  
  47. That's all. After that, there should be a new file, that can be executed,
  48. crunched, deleted or anything.
  49.  
  50.  
  51.                               The Source ...
  52.  
  53. Included is the C-source for T3E. It is compiled with Aztec C 3.6. I am
  54. using a smaller printf-routine to reduced the size of T3E. If you want to
  55. compile it, just add a line `#define PrintF printf' in the source and
  56. remove the `-lmy' from the linker line.
  57.  
  58.  
  59.                              Distribution ...
  60.  
  61. T3E  is  freeware.   Copying  and  posting  is strictly allowed, except for
  62. commercial  reasons  (e.g.   german  PD-Sellers,  inclusion  in  commercial
  63. products), which need a written permission from me.
  64.  
  65. If you have any comments, bug-reports, enhancement requests, contact me at
  66. either of the following addresses:
  67.  
  68.       from any country:                   from the US:
  69.       Garry Glendown                      Garry Glendown
  70.       Güldene Kammer 35                   Box R
  71.       W-6430 Bad Hersfeld                 APO NY 09141
  72.       (Germany)
  73.  
  74. Telephone: 06621-77923 (HST/V32bis), give me a yell for voice call...
  75.  
  76. eMail:
  77.       ..cbmvax!cbmger!inside!garry
  78.       Garry@DGIHRZ01.BITNET
  79.       Garry@fulmin.zer.sub.org
  80.       Garry Glendown @ 2:243/43.999 (fido)
  81.  
  82.  
  83.